package com.park.service.impl;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.park.dao.FeeoperatechargerecordMapper;
import com.park.model.Feeoperatechargerecord;
import com.park.service.FeeoperatorChargeRecordService;
@Service
public class FeeoperatorChargeRecordServiceImpl implements FeeoperatorChargeRecordService {

	@Autowired
	FeeoperatechargerecordMapper feeoperatechargerecordMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return feeoperatechargerecordMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Feeoperatechargerecord record) {
		// TODO Auto-generated method stub
		return feeoperatechargerecordMapper.insert(record);
	}

	@Override
	public int insertSelective(Feeoperatechargerecord record) {
		// TODO Auto-generated method stub
		return feeoperatechargerecordMapper.insertSelective(record);
	}

	@Override
	public Feeoperatechargerecord selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return feeoperatechargerecordMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Feeoperatechargerecord record) {
		// TODO Auto-generated method stub
		return feeoperatechargerecordMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Feeoperatechargerecord record) {
		// TODO Auto-generated method stub
		return feeoperatechargerecordMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<Map<String, Object>> getByOperatorAndDate(int operatorId, Date startTime, Date endTime) {
		// TODO Auto-generated method stub
		return feeoperatechargerecordMapper.getByOperatorAndDate(operatorId, startTime, endTime);
	}

	@Override
	public List<Map<String, Object>> getbyUserAndDate(int userId, Date startTime, Date endTime) {
		// TODO Auto-generated method stub
		return feeoperatechargerecordMapper.getbyUserAndDate(userId, startTime, endTime);
	}

}
